﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Prm.Project
{
    /// <summary>
    /// 项目查看申请
    /// </summary>
    public class ProjectApplication : FullAuditedEntity<int> 
    {

        public virtual int ProjectId
        {
            get;
            set;
        }

        /// <summary>
        /// 任务书号
        /// </summary>
        public virtual string ProjectNo
        {
            get;
            set;
        }

        public virtual string ProjectName
        {
            get;
            set;
        }

        public virtual string CheckUsers
        {
            get;
            set;
        }

        /// <summary>
        /// 生效时间
        /// </summary>
        public virtual DateTime EffectiveTime
        {
            get;
            set;
        }

        /// <summary>
        /// 过期时间
        /// </summary>
        public virtual DateTime ExpirationTime
        {
            get;
            set;
        }

        /// <summary>
        /// 申请
        /// </summary>
        public virtual string AppNote
        {
            get;
            set;
        }

        /// <summary>
        /// 申请人
        /// </summary>
        public virtual long AppUserId
        {
            get;
            set;
        }

        /// <summary>
        /// 申请状态
        /// </summary>
        public virtual AppStatus AppStatus
        {
            get;
            set;
        }

        /// <summary>
        /// 审核人Id
        /// </summary>
        public virtual long CheckUserId
        {
            get;
            set;
        }

        public virtual DateTime CreateOn { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public virtual DateTime CheckOn
        {
            get;
            set;
        }

        /// <summary>
        /// 审核说明
        /// </summary>
        public virtual string CheckNote
        {
            get;
            set;
        }
    }


    public enum AppStatus
    {
        未审核,
        已通过,
        已驳回
    }
}
